package com.example.SpringBootMybatis.entity;


import java.io.Serializable;
import java.util.Objects;

    public class ConnectionId implements Serializable {
        private int row_id;
        private int column_id;

        // 构造函数、getter 和 setter 方法

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            ConnectionId that = (ConnectionId) o;
            return row_id == that.row_id &&
                    column_id == that.column_id;
        }

        @Override
        public int hashCode() {
            return Objects.hash(row_id, column_id);
        }
    }
